import request from '@/utils/request'

// 查询浏览历史信息列表
export function listScan(query) {
  return request({
    url: '/scan/scan/list',
    method: 'get',
    params: query
  })
}

// 查询浏览历史信息详细
export function getScan(scanid) {
  return request({
    url: '/scan/scan/' + scanid,
    method: 'get'
  })
}

// 新增浏览历史信息
export function addScan(data) {
  return request({
    url: '/scan/scan',
    method: 'post',
    data: data
  })
}

// 修改浏览历史信息
export function updateScan(data) {
  return request({
    url: '/scan/scan',
    method: 'put',
    data: data
  })
}

// 删除浏览历史信息
export function delScan(scanid) {
  return request({
    url: '/scan/scan/' + scanid,
    method: 'delete'
  })
}
